import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:videodemo/home.dart';
import 'package:videodemo/http/dio_instance.dart';
import 'package:videodemo/z_video/zsn_providers.dart';

void main() {
  // dio初始化
  DioInstance.instance().initDio(baseUrl: '');
  runApp(MultiProvider(
      providers: [ChangeNotifierProvider(create: (contex) => ZsnProviders())],
      child: const MyApp()));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Home(),
    );
  }
}
